$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  .down_pull {
    position: relative;
  }

  .down_pull .pull {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: calc(100% + 8px);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
    top: 90%;
    left: 50%;
    transform: translate(-50%,20px);
    border: 1px solid #999BB0;
    border-radius: 5px;
  }

  .down_pull .pull.on {
    transition: ease .3s;
    opacity: 1;
    transform: translate(-50%,10px);
    pointer-events: auto;
  }

  .down_pull .pull::-webkit-scrollbar {
    width: 0;
  }

  .down_pull .pull p {
    width: calc(100% - 12px);
    height: 49/$f+vw;
    display: flex;
    align-items: center;
    padding: 0 0 0 15/$f+vw;
    cursor: pointer;
    font-size: 14/$f+vw;
    transition: ease .3s;
    color: #707070;
    margin: 6px;
    border-radius: 5px;
    line-height: 36px;
    box-sizing: border-box;
  }

  .down_pull .pull p:hover {
    background: var(--background);
    color: #6456A3;
  }

  .down_pull .pull p.on {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #6456A3 !important;
    pointer-events: none;
  }

  .section_form{
    position: relative;
    transform: scale(.95);
    *{
      box-sizing: border-box;
    }
    padding: 5vw 14.5vw;
    background: #FFFFFF;
    margin-top: 4vw;
    .t{
      text-align: center;
      color: #6456A3;
      font-size: $fontSize_48;
      font-family: 'Montserrat-Regular.otf';
      text-transform: capitalize;
    }
    .t2{
      font-size: $fontSize_24;
      color: #999BB0;
      text-align: center;
      span{
        color: #F00;
      }
    }

    .form{
      margin: 80/$f+vw 0 0 0;
      .flex{
        display: flex;
        justify-content: space-between;
        margin: 0 0 87/$f+vw;
        .item{
          .headline{
            color: #6456A3;
            font-size: 24/$f+vw;
            font-weight: 700;
            margin: 0 0 17/$f+vw 8/$f+vw;
            text-transform: uppercase;
            strong{
              color: #F00;
            }
          }
          .display{
            display: flex;
            justify-content: space-between;
            .border{
              width: 281/$f+vw;
              height: 75/$f+vw;
              border-radius: 8/$f+vw;
              border: 2/$f+vw solid #999BB0;
              display: flex;
              align-items: center;
              justify-content: space-between;
              padding: 0 22/$f+vw 0 27/$f+vw;
              margin: 0 42/$f+vw 0 0;
              &.on{
                border-radius: 8/$f+vw;
                border: 5/$f+vw solid #7C67D8;
              }
              .txt{
                color: #707070;
                font-size: 24/$f+vw;
                font-style: italic;
                font-weight: 400;
              }
              &>img{
                width: 32/$f+vw;
              }
              .pull{
                p{
                  font-size: 24/$f+vw;
                }
              }
            }
          }
          input{
            width: 100%;
            height: 75/$f+vw;
            border-radius: 8/$f+vw;
            border: 2/$f+vw solid #999BB0;
            background: transparent;
            padding: 0 0 0 27/$f+vw;
            color: #636363;
            font-size: 24/$f+vw;
            font-weight: 400;
            font-family: 'Montserrat-Light';
            &::placeholder{
              font-style: italic;
              font-family: 'Montserrat-Light';
            }
          }
        }
        &.flex1{
          .item1{
            width: 827/$f+vw;
            input{
              width: 394/$f+vw;
            }
          }
          .item2{
            width: 495/$f+vw;
          }
        }
        &.flex2{
          .item1{
            .display{
              input{
                width: 325/$f+vw;
              }
            }
          }
          .item2{
            width: 648/$f+vw;
            .border{
              width: 100%;
              margin: 0;
            }
          }
        }
        &.flex3{
          .item{
            width: 100%;
          }
        }
        &.flex4{
          .item{
            width: 648/$f+vw;
          }
        }
        &.flex5{
          margin: 0;
          .item{
            width: 100%;
            .display{
              textarea{
                width: 100%;
                height: 417/$f+vw;
                border-radius: 8/$f+vw;
                border: 2/$f+vw solid #999BB0;
                background: transparent;
                padding: 40/$f+vw 27/$f+vw;
                color: #646464;
                font-size: 24/$f+vw;
                font-weight: 400;
                font-family: 'Montserrat-Light';
                resize: none;
                &::placeholder{
                  font-style: italic;
                  font-family: 'Montserrat-Light';
                }
              }
            }
          }
        }
      }
      button{
        width: 151.861/$f+vw;
        height: 47.842/$f+vw;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 32/$f+vw;
        background: #6456A3;
        border: none;
        margin: 80/$f+vw auto 0;
        cursor: pointer;

        p{
          font-size: 24/$f+vw;
          color: #fff;
          margin: 0 5/$f+vw 0 0;
        }
        img{
          width: 24/$f+vw;
          height: 24/$f+vw;
        }
      }
    }
  }

  .section1 {
    width: 100%;
    height: 110vh;
    position: relative;
    .t{
      position: absolute;
      left: 0;
      top:5%;
      width: 100%;
      text-align: center;
      color: #6456A3;
      font-size: $fontSize_48;
      font-family: 'Montserrat-Regular.otf';
    }
    .map {
      position: absolute;
      right: 0;
      top: 50%;
      width: 100%;
      transform: translateY(-50%);
      text-align: center;

      img {
        width: 80%;
      }

      .position1 {
        position: absolute;
        right: 26%;
        bottom: 43%;
        cursor: pointer;

        svg {
          display: block;
          width: 30/$f+vw;
        }
      }

      .position2 {
        position: absolute;
        right: 27%;
        bottom: 34%;
        cursor: pointer;

        svg {
          display: block;
          width: 30/$f+vw;
        }
      }
      .position3 {
        position: absolute;
        left: 23%;
        bottom: 53%;
        cursor: pointer;

        svg {
          display: block;
          width: 30/$f+vw;
        }
      }
    }

    .content {
      position: absolute;
      width: 45vw;
      top: 18%;
      right: 30vw;

      a {
        display: block;
        width: 100%;
        box-shadow: 0 0 10px rgba(0, 0, 0, .5);
        border-radius: 126/$f+vw;
        background-color: white;
        display: none;

        .pic {
          img {
            width: 100%;
            border-top-left-radius: 126/$f+vw;
            border-top-right-radius: 126/$f+vw;
            height: 450/$f+vw;
            object-fit: cover;
          }
        }

        .info {
          padding: 1vw 3vw 3vw 3vw;

          .p1 {
            color: #6456A3;
            font-size: $fontSize_32;
            font-family: 'Montserrat-Regular.otf';
            padding-bottom: 1vw;
            margin-bottom: 1vw;
            position: relative;

            &::after {
              content: '';
              display: block;
              position: absolute;
              left: 0;
              bottom: 0;
              background: #999BB0;
              width: 116/$f+vw;
              height: 1px;
            }
          }

          .des {
            color: #999BB0;
            font-size: $fontSize_22;
            font-style: italic;
            font-family: 'Montserrat-Light';
            line-height: 1.5;
          }
        }
      }

      .show {
        display: block;
      }
    }
  }

  .section2 {
    background: #61C0BD;
    text-align: center;
    padding: 5vw 0 3vw 0;

    .t {
      color: #FFF;
      font-size: $fontSize_70;
      font-family: 'Montserrat-Regular.otf';
      text-transform: capitalize;
      line-height: 1.2;
    }

    .des {
      width: 50%;
      margin: 2vw auto 4vw auto;
      font-size: $fontSize_28;
      font-style: italic;
      font-family: 'Montserrat-Light';
      color: white;
      line-height: 1.7;
    }

    a {
      display: flex;
      justify-content: center;
      width: fit-content;
      margin: 0 auto;
      align-items: center;

      p {
        font-size: $fontSize_24;
        font-style: italic;
        font-family: 'Newsreader';
        color: white;
        text-transform: capitalize;
      }

      svg {
        display: block;
        margin-top: 0.3vw;
        width: 30/$f+vw;
      }
    }
  }



  @media screen and (max-width: 1024px) {
    padding-top: 60px;

    .section_form{
      margin: 0;
      padding: 50px 5%;
      transform: scale(1);
      .t{
        font-size: 20px;
      }
      .t2{
        font-size: 18px;
      }
      .form{
        margin: 30px 0 0 0;
        .flex{
          flex-direction: column;
          position: relative;
          .pull{
            p{
              font-size: 16px!important;
              height: 40px;
            }
          }
          &.flex2{
            z-index: 5;
            .item1{
              position: relative;
              z-index: 5;
            }
          }
          .item{
            width: 100% !important;
            &.item1{

            }
            &:not(:last-child) {
              margin: 0 0 15px;
            }
            .headline{
              font-size: 16px;
              margin: 0 0 10px;
              p{
                font-size: 16px;
              }
            }
            .display{
              flex-direction: column;
              .border{
                width: 100%;
                height: 45px;
                margin: 0 0 15px;
                padding: 0 15px;
                .txt{
                  font-size: 16px;
                }
                img{
                  width: 15px;
                }
              }
              input{
                width: 100% !important;
                height: 45px;
                padding: 0 0 0 15px;
                font-size: 16px;
                &:not(:last-child) {
                  margin: 0 0 15px;
                }
              }
              textarea{
                width: 100%;
                height: 150px!important;
                padding: 10px 0 15px 15px!important;
                font-size: 16px!important;
              }
            }
          }
        }
        button{
          margin: 50px auto 0;
          width: 140px;
          height: 44px;
          border-radius: 50px;
          p{
            font-size: 14px;
            margin: 0 5px 0 0;
          }
          img{
            width: 16px;
            height: 16px;
          }
        }
      }
    }
    .section1{
      height: auto;
      .t{
        position: static;
        margin: 30px 0;
        font-size: 20px;
      }
      .map{
        position: static;
        transform:translateY(0);
        width: 100%;
        margin: 20px 0;
        .wz{
          display: none;
        }
      }
      .content{
        position: static;
        width: 90%;
        margin: 0 auto;
        a{
          display: block;
          margin-bottom: 30px;
          .pic{
            img{
              height: 200px;
            }
          }
          .info{
            padding: 15px 20px 20px 20px;
            .p1{
              font-size: 20px;
              padding-bottom: 10px;
              margin-bottom: 10px;
              &::after{
                width: 60px;
              }
            }
            .des{
              font-size: 16px;
            }
          }
        }
      }
    }
    .section2{
      padding: 40px 0 30px 0;
      .t{
        font-size:28px;
        margin: 0 5%;
      }
      .des{
        font-size: 16px;
        width: 90%;
      }
      a{
        margin: 20px auto 0 auto;
        p{
          font-size: 18px;
        }
        svg{
          width: 25px;
          transform: translateY(2px);
        }
      }
    }
  }
}